# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-date-format
pkgver=1.005
pkgrel=4
pkgdesc="produce RFC 2822 date strings"
arch=('any')
url="http://search.cpan.org/dist/Email-Date-Format"
license=('GPL' 'PerlArtistic')
depends=('perl')
checkdepends=('perl-test-pod' 'perl-capture-tiny')
options=('!emptydirs')
source=("http://www.cpan.org/authors/id/R/RJ/RJBS/Email-Date-Format-$pkgver.tar.gz")
md5sums=('030dcee3bc1a44674900b0132925bd03')

build() {
  cd Email-Date-Format-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Email-Date-Format-$pkgver
  make test
}

package() {
  cd Email-Date-Format-$pkgver
  make DESTDIR="${pkgdir}" install
}
